package top.rainbowecho.article.vo;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author rainbow
 * @since 2020/3/30 15:09
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
public class ArticleVo {
    private String cover;

    private String author;

    private String text;

    private String title;

    private String summary;

    private String category;

    private String[] tags;

    public ArticleVo(ArticleConvertVo convertVo, ArticleUploadVo uploadVo) {
        this.cover = uploadVo.getCover();
        this.author = uploadVo.getAuthor();
        this.summary = convertVo.getSummary();
        this.text = convertVo.getContent();
        this.title = convertVo.getTitle();
        this.category = uploadVo.getCategory();
        this.tags = uploadVo.getTags();
    }
}
